import request from '@/utils/request'

// 查询周转列表
export function listTurnover(query) {
  return request({
    url: '/system/turnover/list',
    method: 'get',
    params: query
  })
}

// 查询周转详细
export function getTurnover(id) {
  return request({
    url: '/system/turnover/' + id,
    method: 'get'
  })
}

// 新增周转
export function addTurnover(data) {
  return request({
    url: '/system/turnover',
    method: 'post',
    data: data
  })
}

// 修改周转
export function updateTurnover(data) {
  return request({
    url: '/system/turnover',
    method: 'put',
    data: data
  })
}

// 删除周转
export function delTurnover(id) {
  return request({
    url: '/system/turnover/' + id,
    method: 'delete'
  })
}
